<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : rv_100_02.jsp
    Description : 참여후기 상세 (관리자)
    author Ki min
    since 2012. 7. 23.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 7. 23.     Ki min              최초 생성
--%>

<%@ include file="/WEB-INF/jsp/co/mn/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/co/mn/include/session.jspf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jsp/co/mn/include/header.jspf" %>
<script type="text/javascript" src="/dextuploadfl/DEXTUploadFL.js"></script>
<script type="text/javaScript" language="javascript">
$(document).ready(function() {    
    /* List Page 이동 */
    $("#listButn").bind("click", moveListPage);
    /* Form Submit */
    $("#mdfyButn").bind("click", mdfySubm);
});

/*
 * 리스트페이지 이동
 */
function moveListPage() {
    $("#hiddenForm").attr('action','/rv_100_01.do').submit();
}

/*
 * 수정 페이지로 이동
 */
function mdfySubm() {
    $("#hiddenForm").attr('action','/rv_100_03.do').submit();
}


</script>
</head>
<body>
    <div id="contents">
        <form id="hiddenForm" name="hiddenForm" method="post">
            <%-- request --%>
            <input type="hidden" id="blbIdx" name="blbIdx" value="${result.blbIdx }" />
            <input type="hidden" id="currentPageNo" name="currentPageNo" value="${rqInfo.currentPageNo }" />
            <input type="hidden" id="srchScn" name="srchScn" value="${rqInfo.srchScn }" />
            <input type="hidden" id="srchTxt" name="srchTxt" value="${rqInfo.srchTxt }" />
        </form>
        <table border="1" class="modTable" summary="참여후기 관리의 이름,공개여부,이메일,연락처,제목이 기재 되어 있는 표">
            <col width="25%" />
            <col width="25%" />
            <col width="25%" />
            <col width="25%" />
            <tbody>
                <tr>
                    <th>이름</th>
                    <td>${result.pprrNm }</td>
                    <td class="subThead">공개여부</td>
                    <td>
                        <c:if test="${result.oppbYn == 'Y' }">공개 </c:if>
                        <c:if test="${result.oppbYn == 'N' }">비공개 </c:if>
                    </td>
                </tr>
                <tr>
                    <th>이메일</th>
                    <td>${result.eml }</td>
                    <td class="subThead">연락처</td>
                    <td>${result.telNo }</td>
                </tr>
                <tr>
                    <th>정열순서</th>
                    <td colspan="3">
                    	<c:if test="${result.sortNum < 1 }">우선노출</c:if>
                       	<c:if test="${result.sortNum ==1 }">일반노출</c:if>
                    </td>
                </tr>
                <tr>
                    <th>제목</th>
                    <td colspan="3">${result.titl}</td>
                </tr>
                <tr>
                    <th>내용</th>
                    <td colspan="4" class="letter">
                        <c:choose>
                            <c:when test="${result.ltrScnCd == 'A'}">
                          <div class="letterPaper paperType1">
                            </c:when>
                            <c:when test="${result.ltrScnCd == 'B'}">
                          <div class="letterPaper paperType2">
                            </c:when>
                            <c:when test="${result.ltrScnCd == 'C'}">
                          <div class="letterPaper paperType3">
                            </c:when>
                        </c:choose>
                            <!-- editor area -->
                            <p>
                                <c:if test="${result.filPath == 'image'}">
                                    <img src="/upfile/image/${result.filNm }" alt="" />
                                </c:if>
                            <p>
                            <p><strong>${result.titl}</strong></p>
                            <p>
                              ${result.sbc}
                            </p>
                            <p style="text-align:right;"><strong>Form. ${result.rgstDt} ${result.pprrNm}</strong></p>
                            <!--//editor area -->
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>첨부파일</th>
                    <td colspan="3">
                        <c:if test="${result.filPath != 'image' && !empty result.filNm }">
                        <a href="#" onclick="getUpFileDownload('0050','${result.blbIdx}');return false;">${result.filNm }</a>
                        </c:if>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="btnBoard">
            <span class="reverse">
                <input id="mdfyButn" type="submit" title="수정" value="수정" />
                <a id="listButn" href="#">목록</a>
            </span>
        </div>
    </div>
    <%
    // 등록 process 를 위한 iFrame Start
    %>
    <iframe name="comIframe" id="comIframe" src="about:blank" height="0" width="0"></iframe>
    <%
    // 등록 process 를 위한 iFrame END
    %>
</body>
</html>